From 8e5dd35c8910b259c9f48915551511fee686bbba Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Wed, 1 Aug 2012 08:41:17 +0000 Subject: [PATCH] sensible-browser =================================================================== Gbp-Pq: Name sensible-browser.diff --- shell/source/unix/misc/gnome-open-url.sh | 2 +- shell/source/unix/misc/kde-open-url.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/shell/source/unix/misc/gnome-open-url.sh b/shell/source/unix/misc/gnome-open-url.sh index ab730d169a4..e73dfdeac23 100755 --- a/shell/source/unix/misc/gnome-open-url.sh +++ b/shell/source/unix/misc/gnome-open-url.sh @@ -1,6 +1,6 @@ #!/bin/sh # use xdg-open or gnome-open if available -xdg-open "$1" 2>/dev/null || gnome-open "$1" 2>/dev/null || "$0.bin" $1 +xdg-open "$1" 2>/dev/null || gnome-open "$1" 2>/dev/null || sensible-browser "$1" || "$0.bin" $1 exit 0 diff --git a/shell/source/unix/misc/kde-open-url.sh b/shell/source/unix/misc/kde-open-url.sh index fa05bdecbda..9b0285a0c62 100755 --- a/shell/source/unix/misc/kde-open-url.sh +++ b/shell/source/unix/misc/kde-open-url.sh @@ -2,9 +2,13 @@ # special handling for mailto: uris if echo $1 | grep '^mailto:' > /dev/null; then - kmailservice "$1" & + if which kde-open; then + kde-open "$1" & + else + mailservice "$1" & + fi else - kfmclient openURL "$1" & + sensible-browser "$1" & fi exit 0 -- 2.30.2